Remove deprecated usage of SliceConcatExt::connect
authorJesús Espino <jespinog@gmail.com>
Wed, 9 Mar 2016 08:12:57 +0000 (09:12 +0100)
committerJesús Espino <jespinog@gmail.com>
Wed, 9 Mar 2016 08:24:39 +0000 (09:24 +0100)
src/crates-io/lib.rs

index 603a8e899cc34993e678eee80c1c9e5d66bb6d66..fd98a772c6d8239c8d49c6068b7b4263b5acb338 100644 (file)
@@ -273,7 +273,6 @@ fn handle(response: result::Result<http::Response, curl::ErrCode>)
 }
 
 impl fmt::Display for Error {
-    #[allow(deprecated)] // connect => join in 1.3
     fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
         match *self {
             Error::NonUtf8Body => write!(f, "response body was not utf-8"),
@@ -282,7 +281,7 @@ impl fmt::Display for Error {
                 write!(f, "failed to get a 200 OK response: {}", resp)
             }
             Error::Api(ref errs) => {
-                write!(f, "api errors: {}", errs.connect(", "))
+                write!(f, "api errors: {}", errs.join(", "))
             }
             Error::Unauthorized => write!(f, "unauthorized API access"),
             Error::TokenMissing => write!(f, "no upload token found, please run `cargo login`"),